<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>消息详情</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type="text/css">
	ul li {
		list-style:none;
		height:35px;
	}
	</style>

  </head>
  
  <body>
    <div>
    	<ul>
    		<li>消息主题： &nbsp;&nbsp;&nbsp;${amessage.title}</li>
    		<li>重要程度：&nbsp;&nbsp;&nbsp;
    			<span <c:if test="${amessage.messagetype.messagetypeid==1}">style="color:red"</c:if>>
    			**${amessage.messagetype.messagetypename}**
    			</span>
    		</li>
    		<li style="height: 350px">消息内容：&nbsp;&nbsp;&nbsp;
    			<textarea rows="15" cols="30">${amessage.content}</textarea>
    		</li>
    		<li>发件人：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			${amessage.userinfo.username}
    		</li>
    		<li>发送时间：&nbsp;&nbsp;&nbsp;${amessage.recordtime}</li>
    		<li><input type="button" value="关闭" onclick="window.close();" /></li>
    	</ul>
    </div>
  </body>
</html>
